package net.daoke.relation.model.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.daoke.relation.enums.NodeTypeEnum;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Property;

import java.util.List;

@Data
@Node("Node")
public class NodeDomain extends BaseEntity {

    /**
     * 节点类型
     */
    @Schema(description = "节点类型")
    private NodeTypeEnum type;

    /**
     * 节点名称
     */
    @Schema(description = "节点名称")
    private String name;

    /**
     * 节点描述
     */
    @Schema(description = "节点描述")
    private String description;

    /**
     * 存储多个 IP 地址的集合
     */
    @Property("ips")
    @Schema(description = "存储多个 IP 地址的集合")
    private List<String> ips;

    /**
     * 节点所在的区域
     */
    @Property("region")
    @Schema(description = "节点所在的区域")
    private String region;

}

